package com.coolgor.axnut.dao.auth;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.coolgor.axnut.entity.auth.LocalUser;

public interface LocalUserDao {

	LocalUser queryLocalUserById(Long userID);
	
	LocalUser queryLocalUserByUsername(String username);
	
	List<LocalUser> queryLocalUserList(@Param("localUserCondition") LocalUser localUserCondition,
										@Param("rowIndex") int rowIndex,
										@Param("pageSize") int pageSize);

	int queryLocalUserCount(@Param("localUserCondition") LocalUser localUserCondition);
	
	int insertLocalUser(LocalUser localUser);
	
	int updateLocalUser(LocalUser localUser);
	
	int deleteLocalUser(LocalUser localUser);
	
	int batchDeleteLocalUser(List<Long> userIDList);

}
